
from PIL import Image  # PIL pakage name is Pillow
import numpy as np
im = Image.open("D://12.png")
arr = np.array(im)
new_im = Image.fromarray(arr)
new_im.show()
